#coding=utf-8
#Boa:Frame:FrameMall

import wx

def create(parent):
    return FrameMall(parent)

[wxID_FRAMEMALL, wxID_FRAMEMALLNB, 
] = [wx.NewId() for _init_ctrls in range(2)]

class FrameMall(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAMEMALL, name=u'FrameMall',
              parent=prnt, pos=wx.Point(519, 162), size=wx.Size(1286, 731),
              style=wx.DEFAULT_FRAME_STYLE, title=u'\u5546\u57ce\u62a5\u8868')
        self.SetClientSize(wx.Size(1270, 693))
        self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False,
              u'\u6977\u4f53_GB2312'))
        self.SetBackgroundColour(wx.Colour(183, 209, 173))
        self.Bind(wx.EVT_CLOSE, self.OnFrameMallClose)

        self.nb = wx.Notebook(id=wxID_FRAMEMALLNB, name=u'nb', parent=self,
              pos=wx.Point(0, 0), size=wx.Size(1270, 693), style=0)

    def __init__(self, parent):
        self._init_ctrls(parent)

        self.myInit()

    def myInit(self):
        import PanelProfitMall
        import PanelMallDailyStat
        import PanelMallMonthStat
        import PanelMallCheck
        
        self.PanelProfitMall = PanelProfitMall.PanelProfitMall(self.nb)
        self.nb.AddPage(imageId=-1, page=self.PanelProfitMall, select=True,
                    text=u'商品利润评估')

        self.PanelMallDailyStat = PanelMallDailyStat.PanelMallDailyStat(self.nb)
        self.nb.AddPage(imageId=-1, page=self.PanelMallDailyStat, select=False,
                    text=u'日报表')
                                
        self.PanelMallMonthStat = PanelMallMonthStat.PanelMallMonthStat(self.nb)
        self.nb.AddPage(imageId=-1, page=self.PanelMallMonthStat, select=False,
                    text=u'月报表')
                    
        self.PanelMallCheck = PanelMallCheck.PanelMallCheck(self.nb)
        self.nb.AddPage(imageId=-1, page=self.PanelMallCheck, select=False,
                    text=u'财务对账')

    def OnFrameMallClose(self, event):
        self.Show(False)  
